package com.yixun.qfbao.job;
/**
 * @author zilong.liu
 * @date 2020-7-16
 * desc:
 *		已经转化为无效的消息提醒，每个消息只提醒一次
 *			添加报备保护期到期提醒
 *			到访保护期到期提醒
 *			超时未到访转无效提醒
 *			超时未交易转无效提醒
 */

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Component;

import com.yixun.qfbao.api.service.DueRemainderConfigService;

@Component
//@EnableScheduling
public class DueRemainderJob {
	
	private static final Logger LOGGER = LoggerFactory.getLogger(ToBeDueRemainderJob.class);
	
	@Autowired
	DueRemainderConfigService dueRemainderConfigService;
	
	 /**
     * 调用需谨慎，目前未处理有关分销小程序内容
     */
	@Scheduled(cron = "0 0/5 * * * ?")
	public void overReportedTime() {
		LOGGER.info("报备后状态即将到期转无效通知 start");
//		dueRemainderConfigService.sendDueRemainderInfo();
		LOGGER.info("报备后状态即将到期转无效通知 end");
	}
}
